<?php
JLoader::register("PJobpositionModelPositions", OC_App::getAppPath('jobposition') . "/lib/positions.php");

$LoginStats = PUtil::checkUserLogin(true);
if ($LoginStats !== true) {
   echo $LoginStats;
   exit();
}

OCP\JSON::callCheck();

$model = new PJobpositionModelPositions();

list($jobslist, $pagination) = $model->getJobsList();
$tmpl = new OCP\Template('jobposition', 'part.jobs.list', '');
$tmpl->assign('jobslist', $jobslist);
$tmpl->assign('pagination', $pagination);
$tmpl->printpage();
